package com.epfresh.jsbridge;

import android.webkit.JavascriptInterface;

/**
 * Author: Chen
 * Date: 2019/4/11
 * Desc:
 */
public class JsBridge {


    @JavascriptInterface
    public void closeHomeDialogAct() {
        if (homeActJsCallback != null) {
            homeActJsCallback.closeHomeDialogAct();
        }
    }

    /***************************************************************主页转盘活动相关JS call Android回调*******************************************************************/
    private homeActJsCallback homeActJsCallback;

    public void setHomeActJsCallback(JsBridge.homeActJsCallback homeActJsCallback) {
        this.homeActJsCallback = homeActJsCallback;
    }

    public interface homeActJsCallback {
        void closeHomeDialogAct();
    }

    //..................
}
